package com.xing.common.utils;


import io.swagger.models.auth.In;
import lombok.Getter;


/**
 * 统一返回结果状态信息类
 */
@Getter //只能取，不能修改
public enum ResultCodeEnum {
    SUCCESS(200,"成功"),
    FAIL(201,"失败"),
    PAEAM_ERROR(202,"参数不正确"),

    SERVICE_ERROR(202,"服务异常"),
    DATA_ERROR(204,"数据异常"),


    SIGN_ERROR(300,"签名错误" ),
    HOSPITAL_OPEN(310,"医院未开通，暂时不能访问"),
    HOSPITAL_LOCK(320,"医院被锁定，暂时不能访问"),
    ;


    private Integer code;

    private String message;

    ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
